Skip to content

Conversation

@joaquim-verges
Copy link
Member

@joaquim-verges joaquim-verges commented Oct 11, 2024

Problem solved

Short description of the bug fixed or feature added


PR-Codex overview

This PR focuses on enhancing the thirdweb library with support for enclave wallet migration in React Native, along with updates to dependencies and improvements in error handling and wallet management.

Detailed summary

  • Added support for enclave wallet migration in React Native.
  • Updated dependency on @thirdweb-dev/react-native-adapter.
  • Changed ecosystemId references to ecosystem in several files.
  • Improved error handling in guest.ts and other authentication files.
  • Updated WalletImage component to accept client prop.
  • Introduced migrateToEnclaveWallet function for migration logic.
  • Refactored wallet initialization logic to accommodate new ecosystem structure.

The following files were skipped due to too many changes: pnpm-lock.yaml

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@vercel
Copy link

vercel bot commented Oct 11, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 15, 2024 8:13am
thirdweb_playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 15, 2024 8:13am
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 15, 2024 8:13am
wallet-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 15, 2024 8:13am

@changeset-bot
Copy link

changeset-bot bot commented Oct 11, 2024

🦋 Changeset detected

Latest commit: 1994d9e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@thirdweb-dev/react-native-adapter Minor
thirdweb Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@graphite-app
Copy link
Contributor

graphite-app bot commented Oct 11, 2024

Your org has enabled the Graphite merge queue for merging into main

Add the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

@joaquim-verges joaquim-verges marked this pull request as ready for review October 11, 2024 08:40
Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @joaquim-verges and the rest of your teammates on Graphite Graphite

@socket-security
Copy link

socket-security bot commented Oct 11, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@aws-sdk/[email protected] Transitive: environment, filesystem, network +73 5.92 MB amzn-oss, aws-sdk-bot, kuhe, ...2 more

View full report↗︎

@github-actions
Copy link
Contributor

github-actions bot commented Oct 11, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 42.77 KB (0%) 856 ms (0%) 1.6 s (-13.58% 🔽) 2.5 s
thirdweb (cjs) 102.62 KB (0%) 2.1 s (0%) 3.5 s (+0.64% 🔺) 5.6 s
thirdweb (minimal + tree-shaking) 4.84 KB (0%) 97 ms (0%) 114 ms (-13.9% 🔽) 211 ms
thirdweb/chains (tree-shaking) 498 B (0%) 10 ms (0%) 27 ms (-72.71% 🔽) 37 ms
thirdweb/react (minimal + tree-shaking) 17.35 KB (0%) 347 ms (0%) 286 ms (-9.89% 🔽) 633 ms

@codecov
Copy link

codecov bot commented Oct 13, 2024

Codecov Report

Attention: Patch coverage is 17.64706% with 14 lines in your changes missing coverage. Please review.

Project coverage is 45.28%. Comparing base (44b2634) to head (1994d9e).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...irdweb/src/wallets/in-app/web/lib/web-connector.ts 0.00% 12 Missing ⚠️
...n-app/core/authentication/client-scoped-storage.ts 75.00% 1 Missing ⚠️
...irdweb/src/wallets/in-app/web/lib/auth/passkeys.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4992   +/-   ##
=======================================
  Coverage   45.28%   45.28%           
=======================================
  Files        1058     1058           
  Lines       54670    54672    +2     
  Branches     3950     3950           
=======================================
+ Hits        24757    24758    +1     
- Misses      29222    29223    +1     
  Partials      691      691           
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from 44b2634
packages 40.21% <17.64%> (+<0.01%) ⬆️

*This pull request uses carry forward flags. Click here to find out more.

Files with missing lines Coverage Δ
...n-app/core/authentication/client-scoped-storage.ts 36.00% <75.00%> (+0.28%) ⬆️
...irdweb/src/wallets/in-app/web/lib/auth/passkeys.ts 9.52% <0.00%> (ø)
...irdweb/src/wallets/in-app/web/lib/web-connector.ts 0.28% <0.00%> (ø)

Copy link
Member Author

joaquim-verges commented Oct 13, 2024

Merge activity

  • Oct 13, 4:18 PM EDT: Graphite disabled "merge when ready" on this PR due to: a merge conflict with the target branch; resolve the conflict and try again..
  • Oct 15, 4:09 AM EDT: A user added this pull request to the Graphite merge queue.
  • Oct 15, 4:13 AM EDT: A user merged this pull request with the Graphite merge queue.

## Problem solved

Short description of the bug fixed or feature added

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on enhancing the `thirdweb` package by introducing support for enclave wallet migration in React Native and updating relevant dependencies, including `@thirdweb-dev/react-native-adapter`.

### Detailed summary
- Added support for enclave wallet migration in React Native.
- Updated dependency versions for `@thirdweb-dev/react-native-adapter` and `thirdweb`.
- Changed how `ecosystemId` is handled in multiple files to use an object structure.
- Enhanced error handling in wallet recovery functions.
- Updated `ConnectedButton`, `ConnectedModal`, and other UI components to accept `client` prop.
- Introduced migration functionality in `migrateToEnclaveWallet`.
- Refactored wallet-related actions to improve code consistency and structure.

> The following files were skipped due to too many changes: `pnpm-lock.yaml`

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants